[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
outtext() Output a String to Screen at Current Position
#include <graphics.h>
void far outtext(tstring);
char far *tstring;
outtext() outputs graphics text at the current position (CP). The
text is output using the current text font, text direction, character
size and text justification settings. (See settextstyle() and
settextjustify() for more information regarding these text
attributes.)
Returns: Nothing.
-------------------------------- Example ---------------------------------
The following statements output a string of text after setting the
text font, direction and character size.
#include <graphics.h>
#include <conio.h>
main()
{
int gdriver = DETECT;
int gmode;
initgraph(&gdriver,&gmode,"");
settextstyle(SANS_SERIF_FONT,HORIZ_DIR,2);
outtext("Enter your name: ");
getch();
closegraph();
}
See Also:
gettextsettings()
textheight()
outtextxy()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson